package aynu.oracle.video.pojo;

/**
 * 与数据库中 video表 相对于的 pojo类
 */
public class Video {

    /*
    * id 视频编号
    * videoTitle 视频标题
    * videoFilePath 视频路径
    * videoCoverPic 视频封面
    * videoTime 视频时长
    * videoCategory 类被
    * videoAuthor 作者
    * videoUser 用户
    * numberOfHits 点击数
    * releaseTime 发布时间
    * isAudio 是否审核
    * */
    private Integer id;
    private String videoTitle;
    private String videoFilePath;
    private String videoCoverPic;
    private String videoTime;
    private Integer videoAuthor;
    private Integer videoCategory;
    private Integer videoUser;
    private Integer numberOfHits;
    private String releaseTime;
    private Integer isAudio;
    private String videoDescribe;

    // 关联属性
    private Author author;  // 视频作者
    private Category category;  // 视频类别
    private User user; // 上传者

    public Video() {
    }

    public Video(Integer id, String videoTitle, String videoFilePath, String videoCoverPic, String videoTime, Integer videoAuthor, Integer videoCategory, Integer videoUser, Integer numberOfHits, String releaseTime, Integer isAudio, String videoDescribe) {
        this.id = id;
        this.videoTitle = videoTitle;
        this.videoFilePath = videoFilePath;
        this.videoCoverPic = videoCoverPic;
        this.videoTime = videoTime;
        this.videoAuthor = videoAuthor;
        this.videoCategory = videoCategory;
        this.videoUser = videoUser;
        this.numberOfHits = numberOfHits;
        this.releaseTime = releaseTime;
        this.isAudio = isAudio;
        this.videoDescribe = videoDescribe;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVideoTitle() {
        return videoTitle;
    }

    public void setVideoTitle(String videoTitle) {
        this.videoTitle = videoTitle;
    }

    public String getVideoFilePath() {
        return videoFilePath;
    }

    public void setVideoFilePath(String videoFilePath) {
        this.videoFilePath = videoFilePath;
    }

    public String getVideoCoverPic() {
        return videoCoverPic;
    }

    public void setVideoCoverPic(String videoCoverPic) {
        this.videoCoverPic = videoCoverPic;
    }

    public String getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(String videoTime) {
        this.videoTime = videoTime;
    }

    public Integer getVideoAuthor() {
        return videoAuthor;
    }

    public void setVideoAuthor(Integer videoAuthor) {
        this.videoAuthor = videoAuthor;
    }

    public Integer getVideoCategory() {
        return videoCategory;
    }

    public void setVideoCategory(Integer videoCategory) {
        this.videoCategory = videoCategory;
    }

    public Integer getVideoUser() {
        return videoUser;
    }

    public void setVideoUser(Integer videoUser) {
        this.videoUser = videoUser;
    }

    public Integer getNumberOfHits() {
        return numberOfHits;
    }

    public void setNumberOfHits(Integer numberOfHits) {
        this.numberOfHits = numberOfHits;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public Integer getIsAudio() {
        return isAudio;
    }

    public void setIsAudio(Integer isAudio) {
        this.isAudio = isAudio;
    }

    public Author getAuthor() {
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getVideoDescribe() {
        return videoDescribe;
    }

    public void setVideoDescribe(String videoDescribe) {
        this.videoDescribe = videoDescribe;
    }

    @Override
    public String toString() {
        return "Video{" +
                "id=" + id +
                ", videoTitle='" + videoTitle + '\'' +
                ", videoFilePath='" + videoFilePath + '\'' +
                ", videoCoverPic='" + videoCoverPic + '\'' +
                ", videoTime='" + videoTime + '\'' +
                ", videoAuthor=" + videoAuthor +
                ", videoCategory=" + videoCategory +
                ", videoUser=" + videoUser +
                ", numberOfHits=" + numberOfHits +
                ", releaseTime='" + releaseTime + '\'' +
                ", isAudio=" + isAudio +
                ", author=" + author +
                ", category=" + category +
                ", user=" + user +
                '}';
    }
}
